package serive;

import Dao.ScDao;
import Dao.ScDaoImpl;
import entity.Sc;

import java.util.List;

public class ScServiceImpl implements ScService{
    ScDao scDao =new ScDaoImpl();
    @Override
    public boolean saveSc(String id, int sc, String GameType) {
        if (sc>0&&scDao.saveSc(id,sc,GameType)){
            return true;
        }else return false;
    }

    @Override
    public List<Sc> queryAllSc() {
        if (scDao.queryAllSc() !=null){
            return scDao.queryAllSc();
        }else return null;
    }
}
